#!/bin/bash

# 自动部署 Sysbench

# 定义变量
SYSBENCH_SRC="tools"



# 安装依赖
echo "Installing dependencies..."
yum -y install make automake libtool pkgconfig libaio-devel
yum -y install mariadb-devel openssl-devel
# 编译和安装 Sysbench
echo "Compiling and installing Sysbench..."
cd "$SYSBENCH_DIR"
tar -xzvf sysbench-1.0.20.tar.gz
cd sysbench-1.0.20
./autogen.sh
./configure
make
sudo make install

echo "Sysbench deployment completed successfully!"

sysbench --version